import request from "@/utils/request.js"

export default {
	/**
	 * 保存水印照片
	 * @param {Object} data
	 */
	async saveWatermark(data) {
		return await request({
			url: '/api/conslog/add',
			data: data,
			method: 'post',
			channel: 6,
		})
	},
	/**
	 * 分页查询施工日志
	 * 按人员
	 * @param {Object} data
	 */
	async queryByPerson(data) {
		return await request({
			url: '/api/conslog/queryByPerson',
			data: data,
			method: 'post',
			channel: 6,
		})
	},
	/**
	 * 分页查询施工日志
	 * 按时间
	 * @param {Object} data
	 */
	async queryByTime(data) {
		return await request({
			url: '/api/conslog/queryByTime',
			data: data,
			method: 'post',
			channel: 6,
		})
	},
	/**
	 * 查询项目信息
	 * @param {Object} data
	 */
	async queryProject(data) {
		return await request({
			url: '/api/project/query',
			data: data,
			method: 'post',
			channel: 6,
		})
	},
	/**
	 * 获取拍照数量
	 * @param {Object} data
	 */
	async getPictureTotal(data) {
		return await request({
			url: '/api/conslog/getPicTotal',
			data: data,
			method: 'post',
			channel: 6,
		})
	},
	/**
	 * 排名榜
	 * @param {Object} data
	 */
	async queryRank(data) {
		return await request({
			url: '/api/conslog/queryRank',
			data: data,
			method: 'post',
			channel: 6,
		})
	},
}
